<tr class="prop">
  <td colspan="2">
    <b>Company Information:</b>
  </td>
</tr>
<tr class="prop">
  <td valign="top" class="name">
    <label for="rep">Representative:</label>
  </td>
  <td valign="top" class="value ${hasErrors(bean:company,field:'reps','errors')}">
    <g:select optionKey="id" from="${Representative.list()}" name="rep.id" value="${repId}" ></g:select>
  </td>
</tr>
<tr class="prop">
  <td valign="top" class="name">
    <label for="companyType">Company Type:</label>
  </td>
  <td valign="top" class="value ${hasErrors(bean:company,field:'type','errors')}">
    <g:select id="companyType" optionKey="id" from="${CompanyType.list(sort:'name')}" name="type.id" value="${company?.type?.id}" ></g:select>
  </td>
</tr>
<tr class="prop">
  <td valign="top" class="name">
    <label for="name">Company Name:</label>
  </td>
  <td valign="top" class="value ${hasErrors(bean:company,field:'name','errors')}">
    <input type="text" id="name" name="name" value="${fieldValue(bean:company,field:'name')}"/>
  </td>
</tr>
<tr class="prop">
  <td valign="top" class="name">
    <label for="doctorsName">Doctors Name:</label>
  </td>
  <td valign="top" class="value ${hasErrors(bean:company,field:'doctorsName','errors')}">
    <input type="text" id="doctorsName" name="doctorsName" value="${fieldValue(bean:company,field:'doctorsName')}"/>
  </td>
</tr>
<tr>
  <td colspan="2">
    <table class="subPanel">
      <g:render template="createPrimaryAddress" />
    </table>
  </td>
</tr>
<tr class="prop">
  <td valign="top" class="name">
    <label for="phone">Office Phone:</label>
  </td>
  <td valign="top" class="value ${hasErrors(bean:company,field:'phone','errors')}">
    <input type="text" id="phone" name="phone" value="${fieldValue(bean:company,field:'phone')}"/>
  </td>
</tr>
<tr class="prop">
  <td valign="top" class="name">
    <label for="fax">Office Fax:</label>
  </td>
  <td valign="top" class="value ${hasErrors(bean:company,field:'fax','errors')}">
    <input type="text" id="fax" name="fax" value="${fieldValue(bean:company,field:'fax')}"/>
  </td>
</tr>
<tr class="prop">
  <td valign="top" class="name">
    <label for="website">Office Website:</label>
  </td>
  <td valign="top" class="value ${hasErrors(bean:company,field:'website','errors')}">
    <input type="text" id="website" name="website" value="${fieldValue(bean:company,field:'website')}"/>
  </td>
</tr>
<tr class="prop">
  <td valign="top" class="name">
    <label for="email">Office Email:</label>
  </td>
  <td valign="top" class="value ${hasErrors(bean:company,field:'email','errors')}">
    <input type="text" id="email" name="email" value="${fieldValue(bean:company,field:'email')}"/>
  </td>
</tr>
<tr class="prop">
  <td valign="top" class="name">
    <label for="notes">Notes:</label>
  </td>
  <td valign="top" class="value ${hasErrors(bean:company,field:'notes','errors')}">
    <textarea rows="3" cols="25" name="notes">${fieldValue(bean:company, field:'notes')}</textarea>
  </td>
</tr>
%{--            <tr class="prop">
  <td valign="top" class="name">
    <label for="corporateHeadquarters">Corporate Headquarters:</label>
  </td>
  <td valign="top" class="value ${hasErrors(bean:company,field:'corporateHeadquarters','errors')}">
    <g:checkBox name="corporateHeadquarters" value="${company?.corporateHeadquarters}" ></g:checkBox>
  </td>
</tr>
<tr class="prop">
  <td valign="top" class="name">
    <label for="parentCompany">Parent Company:</label>
  </td>
  <td valign="top" class="value ${hasErrors(bean:company,field:'parentCompany','errors')}">
    <input type="text" disabled="true" id="parentCompany" name="parentCompany" value="${fieldValue(bean:company,field:'parentCompany')}"/>
  </td>
</tr>--}%
